<?php
/*
 * table $configurationFiles define all configuration files
 * when was loaded now
 */
$configurationFiles = array(
	"Main Configuration" => "./configs/mainconfigurations.php"
);
/**
 * load all configuration files
 */
try {
	foreach($configurationFiles as $key => $value){
		if(file_exists($value)){
			require_once "$value";
		}
		else {
			throw new Exception("Software can't load file: ".$value.". You must check path to file!");
		}
	}
}
catch(Exception $e){
	$error_message = $e->getMessage();
	return $error_message;
}
// finally is availabe in php 5.5.x
// finally {
	/**
	 * nothing implementation yet
	 */
// }